package ssm.controller;

import java.util.List;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import ssm.entity.Student;
import ssm.service.IStudentService;
import ssm.service.StudentServiceImpl;


@Controller
@RequestMapping("/student")
public class StudentController {
	
	private IStudentService studentService = new StudentServiceImpl();
	
	@RequestMapping("/selectAll")
	@ResponseBody
	public List<Student> selectAll(){
		
		return studentService.selectAll();
	}
	
	
}
